import axios from '@/libs/api.request.js'



export const findAllListCase = data =>{
  return axios.request({
    url: "/api/team/caseinfo/findAllList",
    method: "get",
    data:data
  })
}


export const findAllCaseById = (caseId) =>{
  return axios.request({
    method:"get",
    url:"/api/team/caseinfo/findAllById/" + caseId,
    data:""
  })
};

// 查询施工案例
export const getCaseId = constructionId =>{
  return axios.request({
    url: "/api/team/caseinfo/getCaseId/"+constructionId,
    method: "get",
  })
}


// 查询施工案例
export const getId = constructionId =>{
  return axios.request({
    method:"get",
    url:"/api/team/caseinfo/getId/" + constructionId,
  })
};


// 查询施工案例详情
export const getParticularsId = caseId =>{
  return axios.request({
    method:"get",
    url:"/api/team/caseinfo/getParticularsId/" + caseId,
  })
};


// 查询施工案例说明
export const getProjectId = caseId =>{
  return axios.request({
    url: "/api/team/project/getProjectId/"+caseId,
    method: "get",
  })
}


// 查询施工案例功能区
export const getFunctionalId = caseId =>{
  return axios.request({
    url: "/api/team/functional/getFunctionalId/"+caseId,
    method: "get",
  })
}

//查询商家服务
export const getTraitIdOne = constructionId =>{
  return axios.request({
    url: "/api/shop/trait/getTraitIdOne/"+constructionId,
    method: "get",
  })
}
//查询特色服务
export const getTraitIdTwo = constructionId =>{
  return axios.request({
    url: "/api/shop/trait/getTraitIdTwo/"+constructionId,
    method: "get",
  })
}
// 查询平台服务
export const getTraitIdTree = constructionId =>{
  return axios.request({
    url: "/api/shop/trait/getTraitIdTree/"+constructionId,
    method: "get",
  })
}


